package com.jspgou.cms.manager;

import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.Order;
import com.jspgou.cms.entity.OrderReturn;

public interface OrderReturnMng {
	/**
	 * 后台平台商退货订单
	 * @param status
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public Pagination getPage(Integer status,int pageNo, int pageSize);
	
	public OrderReturn findById(Long id);
	
	public OrderReturn findByOrderId(Long orderId);

	public OrderReturn save(OrderReturn bean);
	
	public OrderReturn save(OrderReturn bean,Order order,String alipayId, String reasonId,Boolean delivery,String[] picPaths, String[] picDescs);

	public OrderReturn update(OrderReturn bean);

	public OrderReturn deleteById(Long id);
	
	public OrderReturn[] deleteByIds(Long[] ids);
	
	/**
	 * 验证此退款退货订单是否存在
	 * @param code
	 * @return
	 */
	public boolean returnOrderExist(Order order);
}